import {
	defineConfig
} from "vite"
import uni from "@dcloudio/vite-plugin-uni";
 
export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/dev-api': {
				target: 'http://192.168.8.130:9010',
				changeOrigin: true,
				rewrite: path => {
					return path.replace(/^\/dev-api/, '')
				}
			},
			'/dev-png': {
				target: 'http://192.168.8.130:9000',
				changeOrigin: true,
				rewrite: path => {
					return path.replace(/^\/dev-png/, '')
				}
			},
			
		}
	}
})